﻿using SmartSpace.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SmartSpace.Template.Enterprise
{
    public class EnterpriseTemplate : ISiteTemplate
    {
        private IMainPanel _mainPanel;

        public IMainPanel GetMainPanel(System.Web.UI.Page page)
        {
            if (_mainPanel == null)
            {
                _mainPanel = page.LoadControl("~/_templates/_site/enterprise/MainPanel.ascx") as IMainPanel;
            }

            return _mainPanel;
        }

        public Guid Id
        {
            get
            {
                return new Guid("{0B57ECCF-4AE6-439C-B061-8CB686AADE19}");
            }
        }

        public string Caption
        {
            get
            {
                return "企业网站模板";
            }
        }

        public string Name
        {
            get { return "enterprisse"; }
        }
    }
}